package com.naiterui.ehp.bs.ds.modules.sys.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.SqlCondition;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.naiterui.ehp.bp.support.bean.annotation.FormatOriginalType;
import com.naiterui.ehp.bs.ds.common.entity.BaseTree;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 数据字典
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("dict")
public class Dict extends BaseTree implements Serializable {

    private static final long serialVersionUID = 1314169789079603883L;

    /**
     * 字典名称
     */
    @TableField(condition = SqlCondition.LIKE, insertStrategy = FieldStrategy.NOT_EMPTY)
    private String name;
    /**
     * 字典类型
     */
    private String type;
    /**
     * 字典码
     */
    @FormatOriginalType
    private String code;
    /**
     * 字典值
     */
    private String value;
    /**
     * 排序
     */
    private Integer orderNum;
    /**
     * 备注
     */
    private String remark;
    /**
     * 删除标记 -1：已删除 0：正常
     */
    @TableLogic
    private Integer delFlag;

}
